/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * <p>Project: javaseapp - EXce4
 * <p>Powered by webrx On 2021-08-09 11:43:06
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class EXce5 {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fos = new FileOutputStream("user.text");
        try {
            int i = 2 / 1;
            String n = null;
            System.out.println(n.toLowerCase());
            throw new Exception("输入不正确，必须是1-100的数");
        } catch (ArithmeticException ae) {
            System.out.println(ae.getMessage());
        } catch (NullPointerException npe) {
            System.out.println(npe.getMessage());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


}
